package com.ruoyi.st.service.impl;

import com.ruoyi.st.domain.StTicketPrice;
import com.ruoyi.st.mapper.StTicketPriceMapper;
import com.ruoyi.st.service.IStTicketPriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 票面价格Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-07
 */
@Service
public class StTicketPriceServiceImpl implements IStTicketPriceService 
{
    @Autowired
    private StTicketPriceMapper stTicketPriceMapper;

    /**
     * 查询票面价格
     * 
     * @param id 票面价格主键
     * @return 票面价格
     */
    @Override
    public StTicketPrice selectStTicketPriceById(Long id)
    {
        return stTicketPriceMapper.selectStTicketPriceById(id);
    }

    /**
     * 查询票面价格列表
     * 
     * @param stTicketPrice 票面价格
     * @return 票面价格
     */
    @Override
    public List<StTicketPrice> selectStTicketPriceList(StTicketPrice stTicketPrice)
    {
        return stTicketPriceMapper.selectStTicketPriceList(stTicketPrice);
    }

    /**
     * 新增票面价格
     * 
     * @param stTicketPrice 票面价格
     * @return 结果
     */
    @Override
    public int insertStTicketPrice(StTicketPrice stTicketPrice)
    {
        return stTicketPriceMapper.insertStTicketPrice(stTicketPrice);
    }

    /**
     * 修改票面价格
     * 
     * @param stTicketPrice 票面价格
     * @return 结果
     */
    @Override
    public int updateStTicketPrice(StTicketPrice stTicketPrice)
    {
        return stTicketPriceMapper.updateStTicketPrice(stTicketPrice);
    }

    /**
     * 批量删除票面价格
     * 
     * @param ids 需要删除的票面价格主键
     * @return 结果
     */
    @Override
    public int deleteStTicketPriceByIds(Long[] ids)
    {
        return stTicketPriceMapper.deleteStTicketPriceByIds(ids);
    }

    /**
     * 删除票面价格信息
     * 
     * @param id 票面价格主键
     * @return 结果
     */
    @Override
    public int deleteStTicketPriceById(Long id)
    {
        return stTicketPriceMapper.deleteStTicketPriceById(id);
    }
}
